// import store from 'electron-store'
// import Store from 'electron-store'
// // const store = require('electron-store')
// const store = new Store({
//   defaults: {
//     isRainbow: true
//   }
// })
const settings = {
  set: (key, value) => {
    console.log('set', key, value)
  },
  get: (key) => {
    console.log('get', key)
  },
  delete: (key) => {
    console.log('delete', key)
  }
}
export const setElectronStore = (key, value) => {
  settings.set(key, value)
}
export const getElectronStore = (key) => {
  return settings.get(key)
}
export const removeElectronStore = (key) => {
  settings.delete(key)
}
export default { setElectronStore, getElectronStore, removeElectronStore }
// module.exports = { setElectronStore, getElectronStore, removeElectronStore } // 导出模块
